<link href="css/style_question.css" type="text/css" rel="stylesheet" />
<?php
include_once('connection/connection.php');
include('config.php');
$form_id=trim($_REQUEST['form_id']);
$sqlPSP="select * from tbl_dtls_q1_psp where loc_id=".$form_id;
//echo $sqlSWS;
$queryPSP=mysql_query($sqlPSP);
//$rowSWS=mysql_fetch_array($querySWS);
?>	
		<table border="0" width="800" id="table11" cellpadding="0" bgcolor="#EEEEEE">
		<tr>
			<td height="27" align="center" width="15%" bgcolor="#CCCCCC">
				<address>
					<font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Taps / PsP</font></address>
				<address>
					<font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Nos. </font></address>		  </td>
			<td height="27" align="center" width="16%" bgcolor="#CCCCCC">
				<font face="Verdana" style="font-size: 8.5pt" color="#990000">
				Location</font>			</td>
			<td height="27" align="center" width="22%" bgcolor="#CCCCCC">
				<address>
					<font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Attached with</font></address>
				<address>
					<font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">(GLR)</font></address>		  </td>
			<td height="27" align="center" width="23%" bgcolor="#CCCCCC">
				<address>
					<font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Attached with CWT</font></address>
				<address>
					<font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">(Cattle water trough)</font></address>		  </td>
		    <td align="center" width="24%" bgcolor="#CCCCCC"><font face="Verdana" style="font-size: 8.5pt" color="#990000">In SC/ST Basti</font></td>
		</tr>
	<?php
	//$psp_total=$_POST['psp_total'];
	//for($i=1; $i<=$psp_total; $i++)
	//{
  	$i=1;
	while($rowPSP=mysql_fetch_array($queryPSP)){
?>
		<tr>
			<td width="15%" align="center">
		  <input type="text" name="psp_taps<?php echo $i; ?>" id="psp_taps<?php echo $i;?>" size="18" class="txt5" onBlur="numeric(this)" value="<?php echo $rowPSP['psp_taps'];?>"></td>
			<td width="16%" align="center">
				<input type="text" name="psp_loc<?php echo $i; ?>" id="psp_loc<?php echo $i;?>" size="18" class="txt5" value="<?php echo $rowPSP['psp_loc'];?>"></td>
			<td width="22%" align="center">
				<font style="font-size: 8.5pt" face="Arial" color="#000000">
				<input type="radio" name="psp_glr<?php echo $i;?>" id="psp_glr<?php echo $i;?>" value="YES" <?php echo($rowPSP['attached_glr']=='YES')?'checked':'';?>>Yes
		  	  <input type="radio" name="psp_glr<?php echo $i; ?>" id="psp_glr<?php echo $i;?>" value="NO" <?php echo($rowPSP['attached_glr']=='NO')?'checked':'';?>>No
			  </font>
			 </td>
			<td align="center">
				<font style="font-size: 8.5pt" face="Arial" color="#000000">
				<input type="radio" name="psp_cwt<?php echo $i;?>" id="psp_cwt<?php echo $i;?>" value="YES" <?php echo($rowPSP['attached_cwt']=='YES')?'checked':'';?>>Yes
		  	  <input type="radio" name="psp_cwt<?php echo $i;?>" id="psp_cwt<?php echo $i;?>" value="NO" <?php echo($rowPSP['attached_cwt']=='NO')?'checked':'';?>>No
			  </font></td>
			  
		    <td align="center"><font style="font-size: 8.5pt" face="Arial" color="#000000">
				<input type="radio" name="sc_st<?php echo $i;?>" id="sc_st<?php echo $i;?>" value="YES" <?php echo($rowPSP['sc_st']=='YES')?'checked':'';?>>Yes
		  	  <input type="radio" name="sc_st<?php echo $i;?>" id="sc_st<?php echo $i;?>" value="NO" <?php echo($rowPSP['sc_st']=='NO')?'checked':'';?>>No</font></td>
		</tr>
		<input type="hidden" name="pspcount" id="pspcount" value="<?php echo $psp_total;?>">
		<?php $i++;
			} 
		?>						
</table>

